<?php

class myUser extends sfGuardSecurityUser
{
    /**
     * getting teacher object associated for current user
     * @return Teacher
     */
    public function getTeacherObject(){
        $g_user     = $this->getGuardUser();
        $teacher_id = $g_user->getUsername();
        $teacher    = TeacherTable::getInstance()->retrieveByIntgId($teacher_id);
        
        return $teacher;
    }
}
